package com.ruoyi.db.domain;

import java.math.BigDecimal;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 来源基本对象 ml_source_base_info
 * 
 * @author ruoyi
 * @date 2024-08-22
 */
@Data
public class SourceBaseInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 渠道编号 */
    @Excel(name = "渠道编号")
    private String channelCode;

    /** 渠道名称 */
    @Excel(name = "渠道名称")
    private String channelName;

    /** 描述信息 */
    @Excel(name = "描述信息")
    private String descInfo;

    /**  */
    @Excel(name = "")
    private BigDecimal baseAmount;

    /** 收益分成比例 */
    @Excel(name = "收益分成比例")
    private BigDecimal profitRate;

    /** 流程类型 */
    @Excel(name = "流程类型")
    private Long flowType;

    /**  */
    @Excel(name = "")
    private String signType;

    /** 加密类型 */
    @Excel(name = "加密类型")
    private String encryptType;

    /**  */
    @Excel(name = "")
    private String extData;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 是否推送给机构（1 推送）（0不推送） */
    @Excel(name = "是否推送给机构", readConverterExp = "1=,推=送")
    private Long pushFlag;

    /** 结算方式（2 注册结算）（1 推送成功结算） */
    @Excel(name = "结算方式", readConverterExp = "2=,注=册结算")
    private Long settleFlag;

    /**  */
    @Excel(name = "")
    private String appKey;

    /**  */
    @Excel(name = "")
    private String appSecret;

    /**  */
    @Excel(name = "")
    private String pubKey;

    /**  */
    @Excel(name = "")
    private String priKey;

    /**  */
    @Excel(name = "")
    private String factoryType;

    /**  */
    @Excel(name = "")
    private String type;

    /** 1固价 2分润 */
    @Excel(name = "1固价 2分润")
    private String priceType;

    /** 撞库超时时间 */
    @Excel(name = "撞库超时时间")
    private Long checkTimeout;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal priceAmount;

    /** 溢价率（价格*溢价率=推送价格） */
    @Excel(name = "溢价率", readConverterExp = "价=格*溢价率=推送价格")
    private BigDecimal priceRate;

    /** 进件超时时间 */
    @Excel(name = "进件超时时间")
    private Long registerTimeout;
    /** 进件超时时间 */
    @Excel(name = "撞库最低价")
    private BigDecimal checkMinAmount;

    /** 对比价格开关 */
    @Excel(name = "对比价格开关")
    private String comparePrice;

    /** 对比价格数量 */
    @Excel(name = "对比价格数量")
    private Long compareNum;

    @Excel(name = "价格百分比")
    private BigDecimal priceReductionPercentage;
}
